{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "df52e908",
   "metadata": {},
   "source": [
    "---\n",
    "* 2023-10-30\n",
    "* 课程：Python语言\n",
    "* week08\n",
    "\n",
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "41b7e74d",
   "metadata": {},
   "source": [
    "# 本周内容\n",
    "## 1. 列表进阶\n",
    "## 2. 课本项目\n",
    "## 3.留一个课堂项目给大家做"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4f733cb1",
   "metadata": {},
   "source": [
    "### 1.1 接上周内容（）列表的方法--remote"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b868ab14",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "41ab4686",
   "metadata": {},
   "source": [
    "* 思考：我怎么知道“李鹏”在数据列表里面呢？\n",
    "\n",
    "> 1. 先查询\n",
    "> 2. 后删除\n",
    "\n",
    "* in 方法（查询元素的方法）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "15962f3d",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n"
     ]
    }
   ],
   "source": [
    "# 列表的循环\n",
    "for i in name_list:\n",
    "    if i == \"张三\":\n",
    "        print (i)\n",
    "        name_list.remove(\"张三\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "907f5881",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "31ddea50",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"小明\" in name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "111ea3c5",
   "metadata": {},
   "outputs": [],
   "source": [
    "if \"小明\" in name_list:\n",
    "     name_list.remove(\"小明\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "d26c694d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a249be9a",
   "metadata": {},
   "source": [
    "### 1.2 列表的其他方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "1844c5d0",
   "metadata": {},
   "outputs": [
    {
     "ename": "SyntaxError",
     "evalue": "invalid syntax (1884821809.py, line 1)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  Cell \u001b[1;32mIn[7], line 1\u001b[1;36m\u001b[0m\n\u001b[1;33m    name_list.\u001b[0m\n\u001b[1;37m              ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
     ]
    }
   ],
   "source": [
    "name_list."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "5bf71e32",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'Jalex']"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# clear 情况，清除列表中的所有元素\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "c8231661",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.clear()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "6bd5a481",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "56c9db06",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# count 查看list中统计元素出现的数量\n",
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "11f079fe",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list.count(\"李四\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "3d416a8e",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 案例\n",
    "# 假设掷骰子100次，统计1-6各出现多少次\n",
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "7cb58561",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 是不是需要有一个空列表？来存放我们产生的数据呢？\n",
    "random_list = []\n",
    "# 增加数据到列表里面？\n",
    "for i in range(10000):\n",
    "    random_list.append(random.randint(1,6))\n",
    "   # print(random.randint(1,6))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "1584760e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[1, 6, 6, 2, 6, 3, 1, 1, 5, 3, 3, 6, 4, 4, 6, 3, 6, 6, 4, 4, 4, 5, 5, 3, 4, 4, 1, 1, 4, 4, 5, 6, 3, 1, 6, 2, 6, 5, 4, 4, 4, 3, 5, 2, 5, 2, 6, 3, 4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5, 1, 1, 5, 2, 2, 5, 4, 6, 2, 1, 6, 6, 4, 1, 4, 3, 1, 5, 6, 3, 1, 2, 4, 1, 3, 6, 2, 2, 3, 1, 6, 5, 2, 4, 3, 3, 1, 5, 2, 3, 3, 5, 2, 4, 2, 2, 6, 4, 4, 3, 3, 5]\n"
     ]
    }
   ],
   "source": [
    "print( random_list)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "71406e00",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 1581 0.1581\n",
      "2 1717 0.1717\n",
      "3 1668 0.1668\n",
      "4 1679 0.1679\n",
      "5 1713 0.1713\n",
      "6 1642 0.1642\n"
     ]
    }
   ],
   "source": [
    "for i in range(1,7):\n",
    "    print(i,random_list.count(i),random_list.count(i)/10000)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3b29a8f2",
   "metadata": {},
   "source": [
    "### 1.3列表元素的排序 sort()和reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "e4c3cd1d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "daade9f2",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.sort()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "53ff4843",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['Jalex', '小明', '张三', '李四', '李四']"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "f623ee9e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[18, 19, 20, 21, 22, 30, 17]"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list = [18 ,19 ,20,21,22,30,17]\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "333826cd",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[17, 18, 19, 20, 21, 22, 30]"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list.sort() #从小到大排序\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "0f63fc1b",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 22, 21, 20, 19, 18, 17]"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list.reverse() #从大到小排序\n",
    "age_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "de8a8d9b",
   "metadata": {},
   "source": [
    "### 1.4 copy（）\n",
    "> 1. =\n",
    "> 2.copy()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "id": "57b824dd",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2410333912576\n",
      "2410334197616\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "print(id(name_list01))\n",
    "print(id(name_list01[0]))\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "cb92fcf4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2410333912576\n",
      "2410334197616\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 25,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01\n",
    "print(id(name_list02))\n",
    "print(id(name_list02[0]))\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "0caeb1b0",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list01.append(\"Marry\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "78332a75",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "a7c6d084",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['张三', '李四', '小明', 'Jalex', '李四', 'Marry']\n"
     ]
    }
   ],
   "source": [
    "print(name_list02)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "cf11c83a",
   "metadata": {},
   "source": [
    "* 如上原因：我们不得不找一个方法来实现“真正的”复制"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "aabecdfc",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2410334481088\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\",\"李四\",\"小明\",\"Jalex\",\"李四\"]\n",
    "print(id(name_list01))\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "91b5139c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01.copy()\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "1a6db047",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'李四'"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01.pop()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 33,
   "id": "22315176",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "6374b81d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex', '李四']"
      ]
     },
     "execution_count": 34,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "faf6fc1e",
   "metadata": {},
   "source": [
    "# 2.课后实践\n",
    "## 2.1实践：购物车项目"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "014d6baa",
   "metadata": {},
   "source": [
    "---\n",
    "\n",
    "购物车程序项目：\n",
    "\n",
    "> 1. 运行程序后，让用户输入支付宝余额，然后打印我们的商品列表给用户。\n",
    "> 2. 让用户输入商品编号进行商品的购买。\n",
    "> 3. 用户选择商品后，检查用户的余额是否够，若够则直接扣款，不够则提醒用户。\n",
    "> 4. 用户可以随时退出购买，推出时打印用户已购买的商品和支付宝余额。\n",
    "\n",
    "---"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "79b4ec7a",
   "metadata": {},
   "outputs": [
    {
     "ename": "IndentationError",
     "evalue": "unindent does not match any outer indentation level (<tokenize>, line 14)",
     "output_type": "error",
     "traceback": [
      "\u001b[1;36m  File \u001b[1;32m<tokenize>:14\u001b[1;36m\u001b[0m\n\u001b[1;33m    else\u001b[0m\n\u001b[1;37m    ^\u001b[0m\n\u001b[1;31mIndentationError\u001b[0m\u001b[1;31m:\u001b[0m unindent does not match any outer indentation level\n"
     ]
    }
   ],
   "source": [
    "思路\n",
    "# 1.让用户输入支付宝余额\n",
    "Alipay = input()\n",
    "商品列表 = []\n",
    "\n",
    "print(商品列表)\n",
    "购物车列表 = [\n",
    "    \n",
    "]\n",
    "# 2. #3.\n",
    "users_choese = input()\n",
    "if 钱包余额 > 商品价格：\n",
    "     扣钱，加商品近购物车（append）\n",
    "    else\n",
    "    print（你的余额不足）\n",
    "    \n",
    "    #4.\n",
    "    break 退出循环,打印购物车列表"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "537c56fa",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 储存商品列表\n",
    "product_list = [('柠檬水',4),('草莓啵啵',8),('柠檬红茶',5),('雪顶咖啡',6),('蜜桃四季春',6)]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "5453463c",
   "metadata": {},
   "outputs": [],
   "source": [
    "salary = input(\"请输入你的金额\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "dfc5d3c7",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
